try:
    from PySide6.QtWidgets import QApplication  # 尝试从PySide6导入QApplication
    from PySide6.QtCore import Qt  # 尝试从PySide6导入Qt
    print("PySide6安装成功！")
except ImportError:
    print("PySide6没有安装。")